<?php

namespace Mvc;
/**
 * Created by PhpStorm.
 * User: 554665488
 * Date: 2018-6-21
 * Time: 17:10
 * @description:
 * @Author: yfl
 * @QQ 554665488
 */

class autoLoad
{
    public static function load($class)
    {
//        var_dump($class);
        try {
            require __DIR__ . '/../' . str_replace('\\', '/', $class) . '.php';
        } catch (\Exception $exception) {

            throw new  \Exception(__DIR__ . '/' . str_replace('\\', '/', $class) . '.php' . 'not fount');
        }
    }
}

spl_autoload_register('\\Mvc\\autoLoad::load');